package com.yitianyigexiangfa.designpattern.decorate.car;

/**
 * @author Bill Lau
 * @date 2018-03-29
 */
public class CarMain {

    public static void main(String[] args) {
        Car sportsCar = new SportsCar(new BasicCar());
        sportsCar.assemble();
        System.out.println("\n*****");

        Car sportsLuxuryCar = new SportsCar(new LuxuryCar(new BasicCar()));
        sportsLuxuryCar.assemble();
    }
}
